home *** CD-ROM | disk | FTP | other *** search
- Path: news.bridge.net!news
- From: David Byrden <100101.2547@compuserve.com>
- Newsgroups: comp.lang.c++
- Subject: Re: Can someone help me with objects and functions?
- Date: 7 Jan 1996 22:38:40 GMT
- Organization: self-employed
- Message-ID: <4cpi1g$hlc@news.bridge.net>
- References: <DKM0M3.AoB@news.zippo.com>
- NNTP-Posting-Host: ppp-mia1-39.bridge.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.1N (Windows; I; 16bit)
-
-
- Timothy;
-
- Without seeing your code, I would guess that you are passing
- the ofstream object by value, which actually causes a
- duplicate of it to be made. Pass by reference instead.
-
- David
-
-
-